#
# 响应延迟模拟
#
module.exports = (req, res, next) ->
  send = res.send
  res.send = ->
    args = arguments

    setTimeout ->
      send.apply(res, args)
    , 3000

  next()
